import 'package:flutter/cupertino.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:qr_flutter/qr_flutter.dart';
import 'package:flutter_test1/extension/string_extension.dart';

class QrCodeDialog extends StatelessWidget {
  final String privateKey;

  const QrCodeDialog({
    super.key,
    required this.privateKey,
  });

  @override
  Widget build(BuildContext context) {
    return Container(
      width: 200.w,
      height: 200.h,
      child: QrImageView(
        data: privateKey,
        size: 200,
      ),
    );
  }
}
